package com.wenx.v3system.modular.cloud.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.util.List;

/**
 * 用户角色分配请求DTO
 */
@Data
@Schema(description = "用户角色分配请求")
public class UserRoleAssignRequest {

    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID", example = "1001")
    private Long userId;

    @NotEmpty(message = "角色ID列表不能为空")
    @Schema(description = "角色ID列表", example = "[1, 2, 3]")
    private List<Long> roleIds;

    @Schema(description = "操作原因", example = "权限调整")
    private String reason;

    @Schema(description = "是否覆盖现有角色", example = "false")
    private Boolean overwrite = false;
} 